<?php
/*
Template Name: Archive
*/
?>

<?php get_header(); ?>

<div id="content">
	<?php if (wpboxes_options('wpboxes_tw') == 'show') { ?>
		<div id="top-widget">
			<?php if ( dynamic_sidebar('top-widget') ) : else : ?>
			<?php endif; ?>
			<div class="clear"></div>
		</div>
	<?php } ?>	
	<div class="hentry">
		<div class="headline-area">
			<div class="post-title"><h1>Archive</a></h1></div>
			<div class="postmeta">Archive Page for <span><?php echo get_bloginfo('name'); ?></span></div>
			<div class="clear"></div>
		</div>
	<?php $args = array( 'posts_per_page'=> -1 );
		$wp_query = new WP_Query( $args );
			if ($wp_query->have_posts()) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
		
	<ul>
		<li>
			<?php echo get_the_date('d/m/Y'); ?>: <a href="<?php the_permalink(); ?>" title="Read: <?php the_title(); ?>" ><?php the_title(); ?></a>
		</li>
	</ul>


<?php endwhile; ?>
<?php endif; ?>
	<?php wp_reset_query(); ?>
	
	</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>